home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8771 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: nntp-trd.UNINETT.no!usenet
  2. From: Vegard Bakke <vegard3@kihdata.kih.no>
  3. Newsgroups: comp.unix.programmer,comp.lang.c++
  4. Subject: [Q] Useing files as semaphores.
  5. Date: Mon, 26 Feb 1996 17:58:20 +0100
  6. Organization: UNINETT news service    
  7. Message-ID: <3131E6AC.5925@kihdata.kih.no>
  8. NNTP-Posting-Host: tott.kih.no
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.05 9000/720)
  13.  
  14. I'm programming C++ on HP-UX 9.05 useing the compiler CC.
  15. I have a synchornice problem that would do best without any 
  16. deamons.
  17.  
  18. Is ofstream::open(FileName,ios::noreplace) an atomic action?
  19. Is it possible for two programs to open and create the same
  20. file? Or is it just buffering or cacheing it away in the
  21. memory in some way?
  22.  
  23. In other words, is it possible to use open w/noreplace as
  24. a semaphore? Is it the compilers responsibillity or the OS?
  25.  
  26. Please respond if you know something.
  27.  
  28.  
  29. Vegard
  30. -- 
  31. _________________________________________________________________________
  32. |      snailto: Vegard Bakke, Kirkegata 9, 3600 Kongsberg, Norway
  33. |
  34. | mailto:vegard3@kihdata.kih.no   http://knoll.kih.no:8001/stud/vegard3
  35. |
  36. |                      no.test er best                           |
  37.